<?php

session_start();

include "config.php";
include "notifier.class.php";
include "includes/add.lib.php";
include "includes/database.lib.php";
include "includes/delete.lib.php";
include "includes/filter.lib.php";
include "includes/format.lib.php";
include "includes/link.class.php";
include "includes/lister.class.php";



if ($_SERVER['REMOTE_ADDR'] == "71.194.173.118") {
	$_SESSION['admin'] = "TRUE";
	DEFINE("ADMIN", "TRUE");
} else unset($_SESSION['admin']);


if (isset($_REQUEST['debug'])) {
	if ($_REQUEST['debug'] == "on" || $_REQUEST['debug'] == "off") {
		//session_set_cookie_params (0, '/home/.leona/programgeek/programgeeks.net/');
		$_SESSION['debug'] = $_REQUEST['debug'];
	}
} else { $_SESSION['debug'] = "off"; }

$link = connect_db($config);
select_db("links", $link);
?>